package com.oasystem.dao;

import java.util.ArrayList;
import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class MyDao {
	
	public List<Record> getTest(){
		List<Record> list = new ArrayList<Record>();
		String sql = " select * from test";
		list = Db.find(sql);
		return list;
	}
	
	public List<Record> getList(){
		List<Record> list = new ArrayList<Record>();
		StringBuffer querySql = new StringBuffer();
		querySql.append("select * from test");
		
		try {
			list = Db.find(querySql.toString());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return list;
	}
	
}
